package com.xin.auto.lib.base;

import android.util.Log;

public class CommonUtils {
    private static final String TAG = "MainActivity";

    public static final String SERIES_PATH = "seriesPath";

    public static void printErrLog(byte recvBuf2, byte recvData) {
        if (recvBuf2 == (byte) 0xAF) {
            switch (recvData) {
                case 0x01:
                    Log.e(TAG, "异常内容：人流量传感器1异常");
                    break;
                case 0x02:
                    Log.e(TAG, "异常内容：人流量传感器2异常");
                    break;
                case 0x03:
                    Log.e(TAG, "异常内容：温湿度传感器1异常");
                    break;
                case 0x04:
                    Log.e(TAG, "异常内容：温湿度传感器2异常");
                    break;
                case 0x05:
                    Log.e(TAG, "异常内容：光照传感器1异常");
                    break;
                case 0x06:
                    Log.e(TAG, "异常内容：光照传感器2异常");
                    break;
                default:
                    break;
            }
        }
    }
}
